package com.SunSoft.PhoneRemoteControl;

import android.app.AlertDialog.Builder;
import android.content.Intent;
import android.graphics.Color;
import android.media.MediaPlayer;
import android.os.Build.VERSION;
import android.os.Handler;
import android.os.Message;
import android.widget.ImageView;
import android.widget.TextView;
import com.tasogo.comm.e;

final class er extends Handler
{
  public final void handleMessage(Message paramMessage)
  {
    super.handleMessage(paramMessage);
    switch (paramMessage.what)
    {
    case 8:
    case 9:
    case 10:
    case 11:
    case 12:
    default:
    case 2:
      do
      {
        return;
        Show_Search.a(this.a).reset();
        this.a.q.setText(String.valueOf(this.a.k));
        this.a.am.setText(this.a.getString(2131099835) + this.a.al);
        this.a.am.setTextColor(-1);
        Show_Search.a("Test", "MESSAGE_show_test");
        if (Show_Search.b(this.a) <= 0)
          break label353;
        this.a.ak = this.a.ac.b(this.a.ak);
        try
        {
          if ((Show_Search.b(this.a) != 1) && (Show_Search.b(this.a) != 2) && (Show_Search.b(this.a) != 5) && (Show_Search.b(this.a) != 3))
            break label318;
          if ((Show_Search.b(this.a) != 2) || (Build.VERSION.SDK_INT <= 20))
            break label294;
          Show_Search.a(this.a, Show_Search.b().a(this.a.ak, 2));
          return;
        }
        catch (java.lang.NullPointerException paramMessage)
        {
          Show_Search.a(this.a, false);
          return;
        }
        Show_Search.a(this.a, Show_Search.b().a(this.a.ak, 0));
        return;
      }
      while (Show_Search.b(this.a) != 4);
      Show_Search.a(this.a, Show_Search.b().a(this.a.ak, 1));
      return;
      Show_Search.a(this.a, this.a.ak);
      return;
    case 6:
      this.a.am.setText(this.a.getString(2131099835) + this.a.al);
      this.a.am.setTextColor(-1);
      return;
    case 7:
      this.a.am.setText(this.a.getString(2131099835) + this.a.al);
      this.a.am.setTextColor(Color.rgb(45, 154, 6));
      return;
    case 4:
      this.a.am.setText(this.a.getString(2131099737) + Show_Search.c(this.a));
      Show_Search.a("Test", "MESSAGE_test_end");
      if ((!(this.a.ad.a("control_search_end").equals("1"))) && (this.a.F) && (Show_Search.c(this.a) > 1))
        new AlertDialog.Builder(this.a).setTitle(this.a.ao).setMessage(this.a.getString(2131099958)).setNegativeButton(this.a.getString(2131099661), new es(this)).setPositiveButton(this.a.getString(2131099653), new et(this)).show();
      this.a.p.setImageResource(2130837620);
      this.a.S = 2;
      this.a.Q = false;
      this.a.T = true;
      this.a.k = Show_Search.c(this.a);
      return;
    case 5:
      paramMessage = new Intent();
      paramMessage.setClass(this.a.getApplicationContext(), MyViewPagerActivity.class);
      paramMessage.putExtra("type_id", 1);
      this.a.startActivity(paramMessage);
      return;
    case 3:
      label294: label318: label353: paramMessage = new Intent(this.a, Show_Control.class);
      paramMessage.putExtra("con_id", String.valueOf(Show_Search.d(this.a)[(this.a.k - 1)].b));
      paramMessage.putExtra("do_type", "3");
      this.a.startActivity(paramMessage);
      return;
    case 13:
    }
    new Thread(Show_Search.e(this.a)).start();
  }
}